
<style>

  .click{
      background-color: #DADADA;
  }

</style>

<header class="navbar navbar-default navbar-fixed-top" role="navigation" style="background-color: ghostwhite">
  <div class="navbar-header">
    <span style="padding-top: 0" class="navbar-brand"><%= image_tag "3.png" %></span>
  </div>
  <div >
    <ul class="nav navbar-nav pull-right" >
      <li class="<%= @shadow.eql?('home')? 'click': '' %>"><%=link_to 'Home',staticpages_path %></li>
      <li class="<%= @shadow.eql?('help')? 'click': '' %>"> <%=link_to "帮助",help_path %> </li>
      <li class="divider-vertical"></li>
      <%if is_loged_in?%>
        <% if current_user.admin? %>
          <li class="<%= @shadow.eql?('users')? 'click': '' %>"><%= link_to '用户列表',users_path%></li>
        <%end%>
        <li class="dropdown "><a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= current_user.admin? ? '管理员' : '用户'%><b class="caret bottom-up"></b></a>
            <ul class="dropdown-menu dropdown-menu-right">
                <li><%= link_to '个人',current_user%></li>
                <li><%=link_to '设置',edit_user_path(current_user)%></设置></li>
                <li class="divider"></li>
                <li><%= link_to '退出',logout_path,method: :delete%></li>
            </ul>
        </li>
      <%else%>
        <li> <%= link_to '登陆',login_path%></li>
      <%end%>
    </ul>
  </div>
</header>
<br>
<br>
<br>